import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '../views//home/Home.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Home',
        component: home
    },
    {
        path: '/mine',
        name: 'mine',
        component: () => import('../views/mine/Mine.vue')
    },
    {
        path: '*',
        name: '404',
        component: () => import('../views/404.vue')
    },
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
